import 'package:mahjong/entity/MessageContext.dart';
import 'package:mahjong/entity/user/MahjongUserInfo.dart';

import 'AbstractMessageHandler.dart';
import 'package:mahjong/const/MahjongConst.dart';

class MessageUserUpdate extends AbstractMessageHandler {
  void doMessage(MessageContext message) {
    MahjongUserInfo userInfo =  MahjongUserInfo.fromJson(message.body);
    diskPartUserProvider[message.userId]
        .updateUserState(userInfo);
  }
}
